package com.kingzoder.food.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kingzoder.food.common.base.ResultVO;
import com.kingzoder.food.common.base.page.PageResultVO;
import com.kingzoder.food.model.dto.recipe.AddRecipeDTO;
import com.kingzoder.food.model.dto.recipe.EditRecipeDTO;
import com.kingzoder.food.model.dto.recipe.SearchRecipeDTO;
import com.kingzoder.food.model.entity.Recipe;
import com.kingzoder.food.model.vo.recipe.RecipeDetailVO;
import com.kingzoder.food.model.vo.recipe.RecipeVO;

import java.util.List;

/**
 * @author ZoderKing
 */
public interface RecipeService extends IService<Recipe> {

    PageResultVO<List<RecipeVO>> queryPage(SearchRecipeDTO queryDTO);

    ResultVO<RecipeDetailVO> queryOne(Long id);

    ResultVO<Boolean> add(AddRecipeDTO addDTO);

    ResultVO<Boolean> edit(EditRecipeDTO updateDTO);

    ResultVO<Boolean> remove(Long id);
}
